import './css/style.css';
import MyLogo from './images/MyLogo.jpg';
import { calculator } from '@common/utils';
import { getLatestIssues } from '@common/common.business';
console.log(getLatestIssues());

const _ = require('lodash');
console.log(_.join(['Hello', 'Webpack']));

let element = document.createElement('h2');
element.classList.add('header');
element.innerHTML = 'Hello Webpack.';

let image = new Image();
image.width = 150;
image.height = 150;
image.alt = "MyLogo for Albin.";
image.src = MyLogo;

const r = calculator.add(1, 1);
let pre = `<p>1 + 1 = ${r}</p>`

$('#main').append(element)
    .append(image)
    .append(pre);